<template>
  <div id="app">
    <headVue v-if="this.$route.path!='/mine'"/>
    <router-view/>
    <Foot/>
    <div class="gao"></div>
  </div>
</template>

<script>
import headVue from "./components/Head/head.vue";
import Swiper from './components/Swiper/swiper.vue';
import Home from "./views/Home/home.vue";
import Foot from "./components/Foot/foot.vue";
export default{
  data() {
    return {
    }
  },
  components:{
    headVue,
    Swiper,
    Home,
    Foot
},
methods: {
    getClientHeight() {//解决屏幕下沉区域看不到数据的问题
      if(this.count === 0){
        this.count = 1
        document.getElementById('Top').style.height = (document.documentElement.clientHeight - 49) + 'px'
      }
    }
  },
  updated() {
    this.getClientHeight()
    console.log(this.$route.path)
  }
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  overflow: scroll;
}
.gao{
  height: 10vh;
}
nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
